import os 

# 删除当前目录下大小小于10kb的文件
def delete_small_files(path):
    for root, dirs, files in os.walk(path):
        for file in files:
            file_path = os.path.join(root, file)
            if os.path.getsize(file_path) < 30*1024:
                os.remove(file_path)
                print(f"Delete {file_path}")

if __name__ == '__main__':
    delete_small_files('./dataset/nonTor-split')